@import '../node_modules/ant-design-vue/es/style/themes/default.less';
// @import './default.less';

html,
body,
#app, #root {
  height: 100%;
  font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,PingFang SC,Hiragino Sans GB,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
  letter-spacing: 0.4px;
}
// ag主题颜色class列表, 用于文字颜色
.ag-theme {
  color: @ag-theme; //主题色
}
.ag-back {
  color: @ag-back; //主要背景色
}
.ag-card-back {
  color: @ag-card-back;  //卡片底色
}
.ag-theme-mask {
  color: @ag-theme-mask;  //主体遮罩色(10% 透明度)
}
.ag-strengthen {
  color: @ag-strengthen;//强化色
}
.ag-theme-hover {
  color: @ag-theme-hover;//主题Hover
}
.ag-warning {
  color: @ag-warning;   //危险，强化警告色
}
.ag-inside-link {
  color: @ag-inside-link; //内部链接
}
.ag-external-link {
  color: @ag-external-link; //外部链接
}
// ag主题颜色class列表, 用于文字颜色
.ag-theme {
  color: @ag-theme;  //主题色
}
.ag-back {
  color: @ag-back; //主要背景色
}
.ag-card-back {
  color: @ag-card-back;  //卡片底色
}
.ag-theme-mask {
  color: @ag-theme-mask;  //主体遮罩色(10% 透明度)
}
.ag-strengthen {
  color: @ag-strengthen;//强化色
}
.ag-theme-hover {
  color: @ag-theme-hover;//主题Hover
}
.ag-warning {
  color: @ag-warning;   //危险，强化警告色
}
.ag-inside-link {
  color: @ag-inside-link; //内部链接
}
.ag-external-link {
  color: @ag-external-link; //外部链接
}

// ag主题颜色class列表, 用于背景颜色
.ag-theme-back-color {
  background-color: @ag-theme;  //主题色
}
.ag-back-color {
  background-color: @ag-back; //主要背景色
}
.ag-card-back-color {
  background-color: @ag-card-back;  //卡片底色
}
.ag-theme-mask-back-color {
  background-color: @ag-theme-mask;  //主体遮罩色(10% 透明度)
}
.ag-strengthen-back-color {
  background-color: @ag-strengthen;//强化色
}
.ag-theme-hover-back-color {
  background-color: @ag-theme-hover;//主题Hover
}
.ag-warning-back-color {
  background-color: @ag-warning;   //危险，强化警告色
}
.ag-inside-link-back-color {
  background-color: @ag-inside-link; //内部链接
}
.ag-external-link-back-color {
  background-color: @ag-external-link; //外部链接
}

.ag-editor {
  border: 1px solid #ccc;
  z-index: 10;
  border-radius: 4px;
}

.ag-editor-toolbar {
  border-bottom: 1px solid #ccc;
  border-radius: 4px 4px 0 0;

  .w-e-toolbar {
    border-radius: 4px 4px 0 0;
  }
}

.ag-editor-box {
  overflow-y: hidden;
  border-radius: 0 0 4px 4px;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout{
  .layout-basic {
    height: 100vh;
    min-height: 100vh;
  }
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #f0f2f5;
}

ul, ol {
  list-style: none;
}
// 滚动条高度 和宽度
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
// 滚动条颜色
::-webkit-scrollbar-thumb {
  background: #B3B3B3;
}
// 滑块区域底色
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03)
}
// 滚动条hover色
::-webkit-scrollbar-thumb:hover {
  background: #A6A6A6;
}
// 滚动条选中色
::-webkit-scrollbar-thumb:active {
  background: #8C8C8C;
}

// 添加外边框
.ant-table {
  border: 1px solid #e8e8e8;
  border-bottom: 0;
  border-radius: 4px;
}

// 结合 表格组件中的 :scroll ，让表格在收缩时，展示滚动条
.ant-table-body{
  overflow-x: auto !important;
}
// /*显示滚动条上方以及下方的渐增按钮*/
// ::-webkit-scrollbar-button:start:decrement,
// ::-webkit-scrollbar-button:end:increment {
//     display: block;
// }
// /* 定义垂直滚动条渐增按扭的样式 */
// ::-webkit-scrollbar-button:vertical:end:increment {
//   background-image: url(~@/assets/svg/scroll_down.svg);
//   background-size: cover;
//   background-position: center;
// }
// /* 定义垂直滚动条渐减按扭的样式 */
// ::-webkit-scrollbar-button:vertical:start:decrement {
//   background-image: url(~@/assets/svg/scroll_up.svg);
//   background-size: cover;
//   background-position: center;
// }
// /* 定义水平滚动条渐增按扭的样式 */
// ::-webkit-scrollbar-button:horizontal:end:increment {
//   background-image: url(~@/assets/svg/scroll_right.svg);
//   background-size: cover;
//   background-position: center;
// }
// /* 定义水平滚动条渐减按扭的样式 */
// ::-webkit-scrollbar-button:horizontal:start:decrement {
//   background-image: url(~@/assets/svg/scroll_left.svg);
//   background-size: cover;
//   background-position: center;
// }

// 隐藏面包屑底下的标题
.ant-page-header-heading {
  display: none;
}

// 数据列表 样式
.table-alert {
  margin-bottom: 16px;
}
// 数据列表 操作
.table-operator {
  margin-bottom: 18px;

  button {
    margin-right: 8px;
  }
}
// 数据列表 搜索条件
.table-page-search-wrapper {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 30px 30px 0;
  //border-bottom: 1px solid #e8e8e8;
  //background: #fafafa;

  .ant-form-inline {
    .ant-form-item {
      display: flex;
      // margin-bottom: 24px;
      margin-right: 0;

      .ant-form-item-control-wrapper {
        flex: 1 1;
        display: inline-block;
        vertical-align: middle;
      }

      > .ant-form-item-label {
        line-height: 32px;
        padding-right: 8px;
        width: auto;
      }
      .ant-form-item-control {
        height: 32px;
        line-height: 32px;
      }
    }
  }

  .table-page-search-submitButtons {
    display: block;
    margin-bottom: 24px;
    white-space: nowrap;
  }
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// 修改侧边栏宽度为230
.ant-pro-sider-menu-sider {
  // min-width: 80px !important;
  // max-width: 230px !important;

  // 去掉侧边栏阴影
  .light {
    box-shadow: none;
  }
}

// 删除表格的内边距
.ant-card-body {
  padding: 0 !important;
}
// 增加内容区域的边框圆角
.ant-card {
  border-radius: 10px!important;
  overflow: hidden;
}

// 登录页输入框fcous hover事件，边框为ag主题蓝
.ant-input-affix-wrapper:hover .ant-input:not(.ant-input-disabled) {
  border-color: @ag-theme
}
.ant-input:focus {
  border-color: @ag-theme
}

.ant-drawer-wrapper-body {
  width: 100%;
  display: flex;
  flex-flow: column nowrap;
}

// 抽屉，按钮板块，居中
.drawer-btn-center {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  border-top: 1px solid rgb(233, 233, 233);
  padding: 10px 16px;
  background: rgb(255, 255, 255);
  text-align: center;
  z-index: 2;

  &:first-child {
    margin-right: 80px;
  }
  button {
    margin: 0;
    padding: 3px 20px;
  }
}

.els {
  overflow: hidden;
  text-overflow:ellipsis;
  white-space: nowrap
}

// 内容区域去掉最外层的magin 24px ,改为 padding 15px
.ant-pro-basicLayout-content {
  margin: 0 ;
  padding: 5px 15px;
}

// 表格页面的间距
.ant-table-pagination.ant-pagination {
  margin: 20px;
}

//// 去掉表格边框线
//.ant-card-bordered {
//  border:none !important;
//}

.ant-table-align-left {
  padding-left: 38px;
}
// 向下的30外边距
.mg-b-30 {
  margin-bottom: 30px
}

// 表格，搜索框板块布局
.table-head-ground {
  display: flex;
  justify-content: start;
  flex-wrap: wrap;

  .table-layer {
   display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
    flex-shrink: 1;
  }
}

.table-head-layout {
  min-width: 220px;
  max-width: 240px;
  flex-grow: 1;
  flex-shrink: 1;
  margin-bottom:30px !important;
  margin-right: 16px !important;
}

// 404 500 403
.result-err {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  overflow: auto;

  div {
    margin: 20px 0;
    text-align:center;
    font-size: 16px;
    p.big-text {
      font-size: 36px;
      font-weight: 700;
    }
  }
}

.split-line {
  border-bottom: 1px solid #ebeff2;
  position: relative;
  -webkit-touch-callout: none;
  user-select: none;

  .btns {
    width: 100px;
    height: 34px;
    cursor: pointer;
    border: 1px solid #ebeff2;
    border-radius: 5px;
    position: absolute;
    left: 50%;
    margin-left: -50px;
    top: 50%;
    margin-top: -17px;
    background-color: #fff;
    font-size: 12px;

    div {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 10;
      color: #79807e;

      i {
        display: inline-block;
        margin-left: 5px
      }
    }
  }

  .btns:before {
    content: "";
    position: absolute;
    width: calc(100% + 2px);
    height: 50%;
    background-color: #fff;
    top: -1px;
    left: -1px;
    z-index: 1
  }
}

.ant-page-header.has-breadcrumb {
  padding-top: 14px;
}

.ant-pro-sider-menu-sider.light .ant-pro-sider-menu-logo {
  -webkit-box-shadow: 0 0 0 0 #fff !important;
  box-shadow: 0 0 0 0 #fff !important;
}

.ant-menu {
  padding: 0 15px !important;
  border: none !important;
}

.ant-menu-sub.ant-menu-inline {
   padding: 0 !important;
   border: 0 !important;
   border-radius: 0 !important;
   -webkit-box-shadow: none !important;
   box-shadow: none !important;
}

.ant-menu-item {
  border-radius: 3px;
}

.ant-menu-item:hover {
  background: #2691ff26;
}

.ant-menu-item:hover {
  background: #2691ff26;
}

.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
  background-color: @ag-theme !important;
}

.ant-menu-item-selected > a,
.ant-menu-item-selected > a:hover {
   color: #ffffff !important;
}

//.ant-menu-item:hover,
//.ant-menu-item-active,
//.ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open,
//.ant-menu-submenu-active, .ant-menu-submenu-title:hover {
//  color: @ag-theme !important;
//}

//.ant-menu-item:active,
//.ant-menu-submenu-title:active {
//  background: #e6f0ff !important;
//}

body .ant-menu-inline-collapsed > .ant-menu-item,
body .ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item,
body .ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title,
body .ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title {
  padding: 0 15px !important;
}

.ant-menu-vertical.ant-menu-sub,
.ant-menu-vertical-left.ant-menu-sub,
.ant-menu-vertical-right.ant-menu-sub {
  min-width: 190px !important;
}
